package cn.midas.basic.constant;

public class BaseConstants {
    public class SmsConstants {
            // 短信验证用户名
            public static final String UID = "zhaotao";
            // 短信验证码密钥
            public static final String KEY = "8C7B7CBA0B130E450E0BD5C20B70072A";
    }
    public class GraphCodeConstants {
        // 用于手机拼接业务键，存于redis中 查找redis中手机验证码
        public static final String BUSINESS_REGISTER_PREFIX = "register:";
        // 登录时的手机验证码常量
        public static final String BUSINESS_LOGIN_KEY = "login:";


        public static final String BUSINESS_BINDER_PREFIX = "binder:";



    }

    public class WechatConstants {
        // 获取access_token的URL地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
    }
}
